home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / radio / radio.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  2KB  |  85 lines

  1. /***********************************************************
  2. Copyright 1991, 1992, 1993 by Stichting Mathematisch Centrum,
  3. Amsterdam, The Netherlands.
  4.  
  5.                         All Rights Reserved
  6.  
  7. Permission to use, copy, modify, and distribute this software and its 
  8. documentation for any purpose and without fee is hereby granted, 
  9. provided that the above copyright notice appear in all copies and that
  10. both that copyright notice and this permission notice appear in 
  11. supporting documentation, and that the names of Stichting Mathematisch
  12. Centrum or CWI not be used in advertising or publicity pertaining to
  13. distribution of the software without specific, written prior permission.
  14.  
  15. STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
  16. THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  17. FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
  18. FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  20. ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  21. OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  
  23. ******************************************************************/
  24.  
  25. /* Constants shared by radio.c and broadcast.c */
  26.  
  27. #define BCASTCTLPORT        54319
  28. #define RADIOCTLPORT        54320
  29. #define RCVPORT            54321
  30. #define SENDPORT        54318
  31. #define INFOPORT        54317
  32.  
  33. #define SAMPLINGRATE        8000
  34.  
  35. #define BUFFERSIZE        1400
  36. #define CTLPKTSIZE        512
  37. #define INFOFREQ        ((30*SAMPLINGRATE) / BUFFERSIZE)
  38.  
  39. #define HEADERSIZE        2 /* IVS header: 2 bytes (type, encoding) */
  40.  
  41. #define TYPE_MASK        (3<<6)
  42. #define AUDIO_TYPE        (2<<6)
  43.  
  44. #define PCM_64            0
  45. #define PCM_32            1
  46. #define ADPCM_32        2
  47. #define VADPCM            3
  48. #define ADPCM_32_W_STATE    66
  49.  
  50. #ifndef DEFMCAST
  51. #define DEFMCAST        "224.0.2.5"
  52. #endif
  53.  
  54. #ifndef MULTICAST_TTL
  55. #define MULTICAST_TTL        32
  56. #endif
  57.  
  58. #define VERSION            "2.0"
  59.  
  60. #ifdef sgi
  61. #ifndef audiofile
  62. #define USE_AL
  63. #define CHECK_X_SERVER
  64. #endif
  65. #define HAVE_MCAST
  66. #endif
  67.  
  68. #ifdef sun
  69. #define SUNHACKS
  70. #define USE_SUN
  71. #define CHECK_X_SERVER
  72. #endif
  73.  
  74. #ifdef NeXT
  75. #define USE_NX
  76. #endif
  77.  
  78. #ifdef dec_lofi
  79. #define USE_LOFI
  80. #endif
  81.  
  82. #ifdef audiofile
  83. #define USE_AF
  84. #endif
  85.